#!/bin/bash

GOOS=linux  GOARCH=amd64  go build -ldflags "-s -w" -o tianqi-api ./api
GOOS=linux  GOARCH=amd64  go build -ldflags "-s -w" -o tianqi-admin ./admin

scp ./tianqi-api root@gou1:/root/tianqi/tianqi-api.new
scp ./tianqi-admin root@gou1:/root/tianqi/tianqi-admin.new
ssh root@gou1 '/root/tianqi/start.sh'
